<template>
  <h2>我是 From 组件-{{ count }}</h2>
  <button @click="validte">From组件自身的方法</button>
</template>

<script setup leng="ts">
import { ref } from "vue";

const count = ref(0);
const validte = () => {
  console.log("表单组件内部的校验方法");
};

defineExpose({
  count,
  validte,
});
</script>

<style>
</style>